package com.cosmoplat.xikai.business.domain;

import com.cosmoplat.xikai.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @TableName device_product_log
 */
@ApiModel(description = "设备产品日志实体类")
@Data
public class DeviceProductLog implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", required = true, example = "1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 产品id
     */
    @ApiModelProperty(value = "产品id", required = true, example = "1234567890")
    private Long productId;


    /**
     * 能耗
     */
    @ApiModelProperty(value = "能耗", required = false, example = "100")
    private BigDecimal consumption;

    /**
     * 能耗单位
     */
    @ApiModelProperty(value = "能耗单位", required = false, example = "kWh")
    private String consumptionUnit;

    /**
     * 扭矩设备编码
     */
    @ApiModelProperty(value = "扭矩设备编码", required = false, example = "TQD-001")
    private String torqueDeviceCode;

    /**
     * 扭矩规定值
     */
    @ApiModelProperty(value = "扭矩规定值", required = false, example = "20")
    private Double specifiedTorque;

    /**
     * 扭矩测量值
     */
    @ApiModelProperty(value = "扭矩测量值", required = false, example = "22")
    private Double measurTorque;
    /**
     * 最大压力-1
     **/
    @ApiModelProperty(value = "最大压力-1", required = false, example = "100")
    private BigDecimal maximumWorkingMoment1;

    /**
     * 最大压力-2
     **/
    @ApiModelProperty(value = "最大压力-2", required = false, example = "100")
    private BigDecimal maximumWorkingMoment2;
    /**
     * 扭矩范围最大值
     */
    @ApiModelProperty(value = "扭矩范围最大值", required = false, example = "20")
    private Double specifiedTorqueMax;
    /**
     * 扭矩范围最小值
     */
    @ApiModelProperty(value = "扭矩范围最小值", required = false, example = "20")
    private Double specifiedTorqueMin;
    /**
     * 时间
     */
    private Date createTime;
}